package com.drivers.model.chatMessage;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
public class ChatMessage {

  private long id;
  private String fromUserId;
  private String toUserId;
  private String message;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
  private Date time;
  private String fromUserPicture;

  private String toUserPicture;

}
